﻿using RestAPI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TopVisionVideoStream.Mananger
{
    public delegate void ChangePasswordEventHandler(string result);

    public class AccountManager
    {
        public ChangePasswordEventHandler ChangePasswordEvent;

        public AccountManager()
        {

        }

        public void ResetPassword(string account, string oldpwd, string newpwd)
        {
            MChangepwd cpwd = new MChangepwd(account, oldpwd, newpwd);
            cpwd.Call((result) =>
            {
                ChangePasswordEvent?.Invoke(result);
            });
        }
    }
}
